home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AGA Toolkit '97
/
The AGA Toolkit '97.iso
/
diskutil
/
menusystems
/
cliva
/
cliva.doc
< prev
next >
Wrap
Text File
|
1996-09-07
|
11KB
|
287 lines
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##########################
@@@@@@ @@ @@@@@ @@ @@@ @@@@ @@@@@@@#### ####### #####
@@@@@ @@@@@ @@@@@@ @@@ @@@ @@@ @@@@@@### ### ##### ### ####
@@@@@ @@@@@ @@@@@@ @@@ @@@ @@ @ @@@@@######## ##### ### ####
@@@@@ @@@@@ @@@@@@ @@@@ @ @@@ @@@@@#### ###### ### ####
@@@@@ @@@@@ @@@@@@ @@@@ @ @@ @@@ @@@@### ########## ### ####
@@@@@@ @@ @@ @@@@ @@@@ @@@ @@@@### ## ### #####
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##########################
CliVa v2.0 Copyright © 1991 1992 1993 Christian Warren All rights reserved.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CliVa is placed in the Public Domain for the Amiga. A shareware fee
of 15$ is suggested to use it. Feel free to use it, but AT YOUR OWN RISK,
as I cannot be considered responsible for any damage caused to your system.
Introduction
~~~~~~~~~~~~
CliVa will give you the chance to build a interface entirely configurable
to launch your applications from gadgets.
To use CliVa, you must have the 'PowerPacker.library' (permit the
compression of the config) and the 'req.library'.
Requirement
~~~~~~~~~~~
- CliVa must be able to access the 'PowerPacker.library', the
'req.library' and the 'diskfont.library'.
- The file 'echo', 'execute', 'newshell' and 'mouse' must be present in one
of the directory of the path.
- The OS 2.0 IS NOT required for CliVa.
Information on the CliVa executable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CliVa is 'pure', you can make it resident.
SHELL usage:
Cliva {-configuration} Other.config {-configuration}
WORKBENCH usage:
-configuration
...
Other.config
...
argument:
'-configuration' ==> CliVa take the arguement as if it as been placed at
the beginning of the config file.
ex.
CliVa "-TASK_PRIORITE 3" "-SET_VAR BLACK 0"
'Other.config' ==> Config to load. By default, CliVa search in the
current path for the file 'CliVa.config' then he
search it in the directory S:.
ex.
CliVa Other.config
CliVa Configuration Commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name: TASK_PRIORITY
format: -TASK_PRIORITY priority
default: priority = 0
function: Define the task priority of CliVa, must be between -19 and +19.
Name: DEF_WINDOW_EXECUTE
format: -DEF_WINDOW_EXECUTE shell_window_definition
default: "CON:000/095/640/105/CliVa_Shell"
function: Define all shell output specifications which will be opened if
the selected gadget needs an output window.
Name: ON_SCREEN
format: -ON_SCREEN my_screen
default: "Workbench"
function: Opens CliVa on a particular screen. The supplied name of the
screen can consist of the first few letters of the targeted
real name screen. If the screen is not found, CliVa will open
on the default screen. Make sure you close CliVa before you
close the screen it is on, because you will be meditating about
your error while rebooting your system.:-)
ex. -ON_SCREEN CED -> Open Cliva on the Cygnus Ed screen
Name: ICONIFIED
format: -ICONIFIED
function: CliVa will start iconified.
Name: ICON_WHEN_EXECUTE
format: -ICON_WHEN_EXECUTE
function: The 'AutoIconify' option in the menu will be selected.
(more on this AutoIconify function further down)
Name: WINDOW_TITLE
format: -WINDOW_TITLE title
default: "CliVa 2.0 (c) 1991-1993 Christian Warren"
function: Changes the window title. If CliVa's configuration is more
than one page, the following will be inserted " (Page xxx/max )"
to the titlebar. If the NO_DRAG_BAR option is used, the Screen
titlebar will be used.
Name: NO_DRAG_BAR
format: -NO_DRAG_BAR
function: The window does not have a visible DragBar. CliVa will create
invisible gadgets to replace those that are eliminated.
Those invisible gadgets will be placed at the top of the window.
Name: NO_MENU
format: -NO_MENU
function: Does not attach a menu to the screen. You must define a "Quit"
gadget if you want to be able to Quit CliVa.
Name: FONT
format: -FONT font height
default: system font by default.
function: Define the font to be used and its height.
ex. -FONT Diamond.font 14
Name: POS_WINDOW
format: -POS_WINDOW position_x position_y
default: position_x = 0 position_y = 11
function: Define CliVa's top left window corner. If your entry is more
then the screen border, the position will be ajusted to be as
close as possible. An example would be if you define X as 2000,
then CliVa's window will be against the right side screen border.
Name: COLOR_WINDOW
format: -COLOR_WINDOW Letter_color Background_color
default: Letter_color = 2 Background_letter_color = 1
function: Define colors to be used in the window. These colors are, among
things, used for menus and window border.
Name: COLOR_BACKGROUND
format: -COLOR_BACKGROUND color
default: color = 2
function: Define color for background of the window.
Name: NB_GADGETS
format: -NB_GADGETS nb_horizontal nb_vertical
default: nb_horizontal = 5 nb_vertical = 4
function: Define how many horizontal and vertical gadgets.
Name: UP_TO_DOWN
format: -UP_TO_DOWN
function: The gadgets will be numbered from top to buttom instead of
left to right.
NORMAL UPDOWN
1 2 3 1 4 7
4 5 6 2 5 8
7 8 9 3 6 9
Name: SIZE_GADGET
format: -SIZE_GADGET Width height
default: width = 112 height = 13
function: Define width and height of gadgets.
Name: PIXEL_BETWEEN_GADGET
format: -PIXEL_BETWEEN_GADGET space_x space_y
default: space_x = 12 space_y = 4
function: Define space, in pixels, between the gadgets.
Name: PIXEL_FROM_BORDER
format: -PIXEL_FROM_BORDER left right top buttom
default: left = 16 right = 16 top = 5 buttom = 5
function: Define space, in pixels, between the gadgets and the border
of the window.
Name: COLOR_BORDER_GADGET
format: -COLOR_BORDER_GADGET color_Top color_Buttom
default: color_Top = 1 color_Buttom = 0
function: Define colors to be used for the gadgets borders.
Name: COLOR_GADGET_DEF
format: -COLOR_GADGET_DEF Letter_color Back_color
default: Letter_color = 1 Back_color = 2
function: Define default color for gadgets.
Name: FONT_STYLE
format: -FONT_STYLE style
default: NORMAL
function: Define default font style for the gadgets. You must enter
a number defining the font style.
PLAIN TEXT = 0 UNDERSCORE = 1
BOLDFACE = 2 ITALICS = 4
EXTENDED = 8
ex. BOLDFACE + ITALICS -> 2 + 4 ==> -FONT_STYLE 6
Name: GADGET_ICONIFIED
format: -GADGET_ICONIFIED name
default: "CliVa"
function: Define what will be written in CliVa's iconified window.
Name: DEF_ICON
format: -DEF_ICON position_x position_y width
default: position_x = 0 position_y = 11 width = 100
function: Define CliVa's top left window corner position and width.
( minimum width = 26)
The X and Y arguments are subject to the same defenition of
POS_WINDOW. The height of the window will respect the
gadgets height.
Name: SET_VAR
format: -SET_VAR name value
function: Define a variable to ease creation of scripts.
You can define as many variables as you wish. Once defined,
CliVa will replace the -name- by its -numeric_value- when a
configuration needs a number as an argument.
If a variable name is define more than once, only the first
occurance will be used. Variables usage is encouraged to create
easy modifiable scripts.
ex. -SET_VAR red 3
-SET_VAR blue 2
-SET_VAR Boldface_Undescore 3
-COLOR_GADGET_DEF red blue
-FONT_STYLE Boldface_Undescore
Notes.
- The variables defined by SET_VAR can be used anywhere when the
argument required is a number.
ex. -SET_VAR red 2 <= OK
-SET_VAR Titre "CliVa 2.0" <= ERROR
-COLOR_BACKGROUND red <= OK
-WINDOW_TITLE Title <= ERROR
-WINDOW_TITLE red <= window title -> 'red'
- The argument which have imbedded spaces must be quoted using '"'.
ex. -WINDOW_TITLE "CliVa 2.0"
- These commands MUST BE placed before any gadget definition.
If a command is placed after a gadget definition, it will be shown
in the gadget definition.
- You can comment lines using the '#' at the beginning of the line.
Gadgets definition
~~~~~~~~~~~~~~~~~~
These arguments are used to define a gadget.
Title of gadget = Chain of characters to be written in the gadget. The
title of the gadget can contain [<number>]. It will
insert the content of the defined variable <number>.
If the variable's value changes, it will be reflected
in the gadget's title
ex.
variable 1 = "OS 2.0"
title = "Color [1]"
Result -> "Color OS 2.0"
Letter_color = Color used for the letters in a gadget.
Back_color = Color for the background in a gadget.
Font_style = Font style for a gadget.
(see configuration FONT_STYLE)
Nine types of gadgets are possible:
------------------------ 1. Starting Command --------------------------
format:
=S
Command
[Command ...]
function:
Define the commands that will be executed when Starting CliVa.
No gadgets will be created. This can be usefull if you want to
assign some values by default to certain variable.
example:
=S
\vs[1]Workbench
\vs[2]df0:
\vs[3]df1:
=D "DiskCopy from [2] to [3]"
DiskCopy \vu[2] TO \vu[3]
------------------------------ 2. Gadget -------------------------------
format:
=D Title [Letter_color] [Back_color] [Font_style]
Command
[Command ...]
function:
Define a gadget. You must supply a title, others are optional.
example:
=D "Avail" red blue
Avail\w
------------------------------- 3. Menu --------------------------------
format:
=D* Title [Lette